using System;
using System.Collections.Generic;
using System.Text;

namespace BlackJackSimulator
    {

    public class Deck
        {
        private List<Card> m_hshCards = new List<Card>();
        private int m_DeckID;
        private CARD_SUIT m_Card_SUIT = new CARD_SUIT();
        private CARD_VALUE m_Card_VALUE = new CARD_VALUE();


        public Deck()
            {
      


            }
        public int Card_COUNT
            {
            get
                {
                return m_hshCards.Count;
                }
            }
        public List<Card> Cards
            {
            get
                {
                return m_hshCards;
                }
            }
      
        public void CreateDeck(int ST,int SV)
            {
            int CardUniqueID = 0;
            for (int iSuitCount = 1; iSuitCount <= ST; iSuitCount++)
                {
                for (int iCardCounter = 1; iCardCounter <= SV; iCardCounter++)
                    {
                    CardUniqueID += 1;
                    Card newCD = new Card();
                    newCD.CardID = CardUniqueID;
                    newCD.DeckID = Deck_ID;
                    newCD.cardSuitType = m_Card_SUIT.GetSuitType(iSuitCount);
                    newCD.CardValue = m_Card_VALUE.GetValueType(iCardCounter);
                    newCD.NumberValueOfCard = m_Card_VALUE.GetValueofCD(newCD.CardValue);
                    m_hshCards.Add(newCD);
                    }
                }


            }
        
        public int Deck_ID
            {
            get
                {
                return m_DeckID;
                }
            set
                {
                m_DeckID = value;
                }
            }
        }
    }